Systems and Methods for Adding Punctuations

ABSTRACT

Systems and methods are provided for adding punctuations. For example, one or more first feature units are identified in a voice file taken as a whole; the voice file is divided into multiple segments: one or more second feature units are identified in the voice file; a first aggregate weight of first punctuation states of the voice file and a second aggregate weight of second punctuation states of the voice file are determined, using a language model established based on word separation and third semantic features; a weighted calculation is performed to generate a third aggregate weight based on at least information associated with the first aggregate weight and the second aggregate weight; and one or more final punctuations are added to the voice file based on at least information associated with the third aggregate weight.

CROSS-REFERENCES TO RELATED APPLICATIONS

This application claims priority to Chinese Patent Application No. 201310198454.X, filed May 24, 2013, incorporated by reference herein for all purposes.

BACKGROUND OF THE INVENTION

The present invention is directed to computer technology. More particularly, the invention provides systems and methods for data processing. Merely by way of example, the invention has been applied to computer files. But it would be recognized that the invention has a much broader range of applicability.

For certain applications in the fields of communications and internet, punctuations are often added to some punctuation-less files. For example, punctuations can be added to certain voice files.

A conventional approach for adding punctuations to a voice file is based on character separation and character positions. Specifically, sentences in a corpus are divided into characters and the position of each character in the sentences is determined, e.g., at the beginning of a sentence, in the middle, or at the end of the sentence. Further, a punctuation state associated with each character is determined, e.g., whether there is a punctuation that follows the character. A language model is established based on the position of each character in the corpus and the punctuation state associated with the character. When adding punctuations to a voice file, the voice file is processed as a whole, and punctuations can be added based on the characters in the voice file and the language model.

But limited information is implemented to establish the language model based on character positions and punctuation states associated with the characters, and the implemented information is not closely related to the punctuation states. Thus, such a language model often may not extract the actual relationship between information associated with the sentences in the voice file and the punctuation states of the sentences. Furthermore, the internal structural characteristics of the voice file are not considered when punctuations are added to the voice file that is simply taken as a whole. In view of the above-noted factors, the conventional approach for punctuation addition often has a low accuracy.

Hence it is highly desirable to improve the techniques for punctuation addition.

BRIEF SUMMARY OF THE INVENTION

The present invention is directed to computer technology. More particularly, the invention provides systems and methods for data processing. Merely by way of example, the invention has been applied to computer files. But it would be recognized that the invention has a much broader range of applicability.

According to one embodiment, a method is provided for adding punctuations. For example, one or more first feature units are identified in a voice file taken as a whole based on at least information associated with one or more first words in the voice file and one or more first semantic features related to the first words; the voice file is divided into multiple segments based on at least information associated with a silence detection; one or more second feature units are identified in the voice file based on at least information associated with one or more second words in the segments and one or more second semantic features related to the second words; a first aggregate weight of first punctuation states of the voice file based on at least information associated with the first feature units and a second aggregate weight of second punctuation states of the voice file based on at least information associated with the second feature units are determined, using a language model established based on word separation and third semantic features; a weighted calculation is performed to generate a third aggregate weight based on at least information associated with the first aggregate weight and the second aggregate weight; and one or more final punctuations are added to the voice file based on at least information associated with the third aggregate weight.

According to another embodiment, a system for adding punctuations includes a silence-detection module, an identification module, and a punctuation-addition module. The silence-detection module is configured to divide a voice file to be processed into multiple segments based on at least information associated with a silence detection. The identification module is configured to identify one or more first feature units in the voice file taken as a whole based on at least information associated with one or more first words in the voice file and one or more first semantic features related to the first words and identify one or more second feature units in the voice file based on at least information associated with one or more second words in the segments and one or more second semantic features related to the second words. The punctuation-addition module is configured to determine, using a language model established based on word separation and third semantic features, a first aggregate weight of first punctuation states of the voice file based on at least information associated with the first feature units and a second aggregate weight of second punctuation states of the voice file based on at least information associated with the second feature units, perform a weighted calculation to generate a third aggregate weight based on at least information associated with the first aggregate weight and the second aggregate weight, and add one or more final punctuations to the voice file based on at least information associated with the third aggregate weight.

According to yet another embodiment, a non-transitory computer readable storage medium comprises programming instructions for adding punctuations. The programming instructions are configured to cause one or more data processors to execute the following operations. For example, one or more first feature units are identified in a voice file taken as a whole based on at least information associated with one or more first words in the voice file and one or more first semantic features related to the first words; the voice file is divided into multiple segments based on at least information associated with a silence detection; one or more second feature units are identified in the voice file based on at least information associated with one or more second words in the segments and one or more second semantic features related to the second words; a first aggregate weight of first punctuation states of the voice file based on at least information associated with the first feature units and a second aggregate weight of second punctuation states of the voice file based on at least information associated with the second feature units are determined, using a language model established based on word separation and third semantic features; a weighted calculation is performed to generate a third aggregate weight based on at least information associated with the first aggregate weight and the second aggregate weight; and one or more final punctuations are added to the voice file based on at least information associated with the third aggregate weight.

For example, the systems and methods described herein are configured to implement word separation to take into account semantic features of words for accurate punctuation addition. In another example, the systems and methods described herein are configured to take into account the context information of sentences for extraction of features to better reflect correlations between semantic features for accurate punctuation addition.

Depending upon embodiment, one or more benefits may be achieved. These benefits and various additional objects, features and advantages of the present invention can be fully appreciated with reference to the detailed description and accompanying drawings that follow.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a simplified diagram showing a method for adding punctuations according to one embodiment of the present invention:

FIG. 2 is a simplified diagram showing a system for adding punctuations according to one embodiment of the present invention;

FIG. 3 is a simplified diagram showing a system for adding punctuations according to another embodiment of the present invention;

FIG. 4 is a simplified diagram showing a method for establishing a language model according to one embodiment of the present invention;

FIG. 5 is a simplified diagram showing a method for establishing a language model according to another embodiment of the present invention; and

FIG. 6 is a simplified diagram showing a method for adding punctuations according to another embodiment of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

The present invention is directed to computer technology. More particularly, the invention provides systems and methods for data processing. Merely by way of example, the invention has been applied to computer files. But it would be recognized that the invention has a much broader range of applicability.

FIG. 1 is a simplified diagram showing a method for adding punctuations according to one embodiment of the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. The method 100 includes at least the process 101 for identifying first feature units in a voice file taken as a whole, the process 102 for dividing the voice file into multiple segments and identifying second feature units in the voice file, the process 103 for determining, using a language model, a first aggregate weight of first punctuation states of the voice file and a second aggregate weight of second punctuation states of the voice file, and the process 104 for performing a weighted calculation to generate a third aggregate weight and adding one or more final punctuations to the voice file.

According to one embodiment, during the process 101, a voice file to be processed is taken as a whole, and a number of first feature units (e.g., N1) are identified in the voice file based on at least information associated with one or more first words in the voice file and one or more first semantic features related to the first words. For example, during the process 102, the voice file to be processed is divided into multiple segments based on at least information associated with a silence detection, and a number of second feature units (e.g., N2) are identified in the voice file to be processed based on at least information associated with one or more second words in the segments and one or more second semantic features related to the second words. As an example, the semantic features include parts of speech and/or sentence elements. For example, part of speech and/or a sentence element associated with a particular word can be different or remain the same in different contexts.

According to another embodiment, during the process 103, a language model established based on word separation and third semantic features is used to determine a first aggregate weight of first punctuation states of the voice file based on at least information associated with the first feature units (e.g., N1) and a second aggregate weight of second punctuation states of the voice file based on at least information associated with the second feature units (e.g., N2). For example, the language model stores a mapping between each feature unit and preliminary weights for certain preliminary punctuation states related to the feature unit.

According to yet another embodiment, to determine the first aggregate weight, a first mapping between the first feature units and one or more first preliminary weights for one or more first preliminary punctuation states associated with the first feature units is acquired from the language model. For example, one or more first word weights related to the first punctuation states are determined based on at least information associated with the first mapping. As an example, the first aggregate weight of the first punctuation states of the voice file is calculated based on at least information associated with the first word weights.

According to yet another embodiment, to determine the second aggregate weight, a second mapping between the second feature units and one or more second preliminary weights for one or more second preliminary punctuation states associated with the second feature units is acquired from the language model. For example, one or more second word weights related to the second punctuation states are determined based on at least information associated with the second mapping. As an example, the second aggregate weight of the second punctuation states of the voice file is calculated based on at least information associated with the second word weights.

In one embodiment, during the process 104, a weighted calculation is performed to generate a third aggregate weight based on at least information associated with the first aggregate weight and the second aggregate weight. For example, one or more final punctuations are added to the voice file based on at least information associated with the third aggregate weight.

In some embodiments, silence intervals in the voice file affect the semantic features of words and the feature units of the voice file. For example, under some circumstances, silence intervals may be generated because a speaker talks slowly, or because the speaker thinks or hesitates when talking. As shown in FIG. 1, on one hand, the voice file is processed as a whole to discern the semantic features of words included in the voice file, and the first feature units appeared in the voice file are determined so as to determined the first aggregate weight of various punctuation states of the voice file, according to certain embodiments. On the other hand, during the process of determining the semantic features and extracting the feature units, the voice file is divided into multiple segments to be processed through the silence detection in order to take into account the effects of the internal structure of the voice file on the semantic features and the feature units, according to some embodiments. For example, the second feature units appeared in the voice file are determined, and the second aggregate weight of various punctuation states of the voice file is determined. As an example, the final punctuations are added to the voice file according to the third aggregate weight that is generated through the weighted calculation of the first aggregate weight and the second aggregate weight. Thus, the effects of the silence intervals on the semantic features of the words and the feature units of the voice file are taken into consideration, while certain inaccuracies of punctuation addition related to some silence intervals that are generated because the speaker talks slowly or because the speaker thinks or hesitates when talking may be avoided, in certain embodiments.

In one embodiment, the process 101 and the process 102 are executed in parallel for feature unit identification, e.g., through two different routes. As an example, during the process 101, the voice file is processed as a whole (e.g., using a feature-unit identification module) for identifying the first feature units. In another example, during the parallel process 102, the silence detection is performed on the voice file, and the voice file is divided into the multiple segments based on at least information associated with the silence detection. Each segment is processed (e.g., using the feature-unit identification module), and the second feature units in the voice file are identified based on at least information associated with the second words in the segments and the second semantic features related to the second words, according to some embodiments.

In another embodiment, after dividing the voice file into multiple segments based on at least information associated with the silence detection, structural information of the voice file is stored. For example, the multiple segments can be identified based on the structural information. Then, on one hand, the voice file is processed as a whole for identifying the first feature units. On the other hand, one or more third feature units for each segment of the voice file, and the aggregation of the third feature units of the multiple segments yields the second feature units.

In yet another embodiment, dividing the voice file into multiple segments based on at least information associated with the silence detection includes detecting a silence duration in the voice file, and comparing the silence duration with a predetermined silence threshold. For example, if the silence duration exceeds the silence threshold, generating a segment from the voice file based on at least information associated with a silence location corresponding to the silence duration. In some embodiments, different silence thresholds are predetermined for different application scenarios, respectively, in order to satisfy different punctuation needs under these scenarios. For example, punctuations need to be added for voice inputs in a map-based application scenario. The voice inputs may be related to location names, and short pauses may appear in the voice inputs because the location names are very long or a speaker is unfamiliar with the location names. A long silence threshold may be set for such a map-based application scenario to avoid inserting punctuations into a long location name so as to improve the accuracy of punctuation addition.

FIG. 2 is a simplified diagram showing a system for adding punctuations according to one embodiment of the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. As shown in FIG. 2, the system 200 includes a silence-detection module 201, an identification module 202 and a punctuation-addition module 203.

According to some embodiments, the silence-detection module 201 is configured to divide a voice file to be processed into multiple segments based on at least information associated with a silence detection. For example, the identification module 202 is configured to identify one or more first feature units (e.g., N1) in the voice file taken as a whole based on at least information associated with one or more first words in the voice file and one or more first semantic features related to the first words and identify one or more second feature units (e.g., N2) in the voice file based on at least information associated with one or more second words in the segments and one or more second semantic features related to the second words. As an example, the punctuation-addition module 203 configured to, determine, using a language model established based on word separation and third semantic features, a first aggregate weight of first punctuation states of the voice file based on at least information associated with the first feature units and a second aggregate weight of second punctuation states of the voice file based on at least information associated with the second feature units, perform a weighted calculation to generate a third aggregate weight based on at least information associated with the first aggregate weight and the second aggregate weight, and add one or more final punctuations to the voice file based on at least information associated with the third aggregate weight.

FIG. 3 is a simplified diagram showing the system 200 for adding punctuations according to another embodiment of the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. As shown in FIG. 3, the system 200 further includes a first input module 301 and a second input module 302.

According to one embodiment, the first input module 301 is coupled to the identification module 202 and configured to provide the voice file to be processed as a whole to the identification module 202. For example, the identification module 202 is further configured to receive the voice file from the first input module 301 and process the voice file as a whole for identifying the first feature units. As an example, the second input module 302 is coupled to the silence-detection module 201 and configured to provide the voice file to the silence-detection module 201. In another example, the silence-detection module 201 is further configured to provide the segments of the voice file to the identification module 202. In yet another example, the identification module 202 is further configured to identify the second feature units in the voice file based on at least information associated with the second words in the segments and the second semantic features related to the second words.

As shown in FIG. 3, the first input module 301 and the second input module 302 provide the voice file in parallel to the identification module 202, according to certain embodiments. For example, the identification module 202 is configured to process the voice file from the first input module 301 as a whole to identify the first feature units, and process the voice from the second input module 302 to identify the second feature units based on the segments of the voice file.

As discussed above and further emphasized here, FIG. 2 and FIG. 3 are merely examples, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. For example, the identification module 202 is configured to perform identification of the first feature units and identification of the second feature units in parallel approximately simultaneously.

According to one embodiment, the silence-detection module 301 is further configured to determine a silence threshold according to a current application scenario, detect a silence duration in the voice file, and if the silence duration exceeds the silence threshold, and generate a segment from the voice file based on at least information associated with a silence location corresponding to the silence duration. For example, the punctuation-addition module includes an aggregate-weight-determination component, an aggregate-weight-integration component, and a punctuation-addition component. As an example, the aggregate-weight-determination component is configured to determine, using the language model the first aggregate weight of the first punctuation states of the voice file based on at least information associated with the first feature units and the second aggregate weight of the second punctuation states of the voice file based on at least information associated with the second feature units. In another example, the aggregate-weight-integration component is configured to perform the weighted calculation to generate the third aggregate weight based on at least information associated with the first aggregate weight and the second aggregate weight. In yet another example, the punctuation-addition component is configured to add the final punctuations to the voice file based on at least information associated with the third aggregate weight.

According to another embodiment, the aggregate-weight-determination component is further configured to, acquire from the language model a first mapping between the first feature units and one or more first preliminary weights for one or more first preliminary punctuation states associated with the first feature units, determine one or more first word weights related to the first punctuation states based on at least information associated with the first mapping, and calculate the first aggregate weight of the first punctuation states of the voice file based on at least information associated with the first word weights. According to yet another embodiment, the aggregate-weight-determination component is further configured to, acquire from the language model a second mapping between the second feature units and one or more second preliminary weights for one or more second preliminary punctuation states associated with the second feature units, determine one or more second word weights related to the second punctuation states based on at least information associated with the second mapping, and calculate the second aggregate weight of the second punctuation states of the voice file based on at least information associated with the second word weights.

In one embodiment, the identification module 202 includes a semantic-identification component and a feature-extraction component. As an example, the semantic-identification component is configured to identify each word in the voice file or in a segment of the voice file and one or more semantic features of the word. In another example, the feature-extraction component is configured to determine one or more feature units in the voice file based on at least information associated with a predetermined feature template, the words in the voice file and the semantic features related to the words in the voice file.

In another embodiment, the punctuation-addition module 203 includes a weight-acquisition component and an aggregate-weight-calculation component. For example, the weight-acquisition component is configured to acquire from the language model a mapping between each feature unit of the voice file and one or more preliminary weights for one or more preliminary punctuation states associated with the feature unit. As an example, the aggregate-weight-calculation component is configured to determine, based on the acquired mapping, one or more weights for one or more punctuation states associated with each feature unit, and calculate the first aggregate weight or the second aggregate weight based on at least information associated with the weights associated with the feature units in the voice file.

In some embodiments, one or more word weights for one or more punctuation states of each word in the voice file are determined based on at least information associated with a mapping between an acquired feature unit and one or more weights for one or more punctuation states of the feature unit. For example, the word weights are determined based on a mapping function. Specifically, all feature units related to a particular word at a present position in the voice file are determined, and a mapping between each feature unit and one or more unit weights for one or more punctuation states of the feature unit is acquired. Based on a predetermined mapping function, one or more word weights for one or more punctuation states of the particular word are determined, according to certain embodiments. For example, words of a same meaning appear at different positions in the voice file are considered as different words, and are associated with different feature units and different punctuation states.

In certain embodiments, punctuation states of the voice file includes punctuation states of each word in the voice file and is equivalent to a combination of the punctuation states of all words in the voice file. For example, an aggregate weight of various punctuation states of the voice file is determined using an optimal-path algorithm. As an example, an optimal combination (i.e., an optimal path) of the punctuation states of all words in the voice file is determined using a Viterbi algorithm, where the optimal combination has a largest aggregate weight.

In one embodiment, the language model established based on word separation and semantic features of words includes a mapping between each feature unit and weights for punctuation states associated with the feature unit. For example, upon inquiry, a particular mapping between a particular feature unit and related weights for punctuation states is provided.

FIG. 4 is a simplified diagram showing a method for establishing a language model according to one embodiment of the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. The method 400 includes at least the process 401 for performing word separation to divide one or more sentences in a corpus into one or more third words, the process 402 for searching for one or more third feature units in the corpus according to a predetermined feature template, and for each third feature unit including one or more fourth words, recording a number of occurrences of one or more preliminary punctuation states associated with the one or more fourth words, and the process 403 for determining a preliminary weight for a preliminary punctuation state and establishing the language model.

According to one embodiment, during the process 401, word separation is performed to divide one or more sentences in a corpus into one or more third words, the sentences in the corpus including one or more preliminary punctuations. For example, during the process 402, one or more third feature units are searched for in the corpus according to a predetermined feature template based on at least information associated with the third semantic features related to the third words, and for each third feature unit including one or more fourth words, a number of occurrences of one or more preliminary punctuation states associated with the one or more fourth words are recorded. In another example, during the process 403, a preliminary weight is determined for a preliminary punctuation state based on at least information associated with the number of occurrences of the preliminary punctuation states, and the language model is established including a mapping between each of the third feature units and the corresponding preliminary weights for the preliminary punctuation states associated with each of the third feature units.

In some embodiments, the process 402 is executed in two different ways. For example, semantic features and punctuation state of each word in the sentences of the corpus are marked. Then, feature units are searched in the corpus according to the predetermined feature template, and the number of the occurrences associated with each feature unit is recoded, e.g., as shown in FIG. 5. In another example, semantic features and punctuation states of each word in the sentences of the corpus are identified in real time when search for feature units in the corpus according to the predetermined feature template.

FIG. 5 is a simplified diagram showing a method for establishing a language model according to another embodiment of the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications.

The method 500 includes at least the process 501 for performing word separation to divide one or more sentences in a corpus into one or more third words, where the sentences in the corpus include one or more preliminary punctuations, the process 502 for marking one or more third semantic features for the third words based on at least semantic information associated with each third word in the sentences after word separation, and marking one or more preliminary punctuation states for each third word based on at least information associated with the preliminary punctuations, and the process 503 for generating one or more third feature units according to a predetermined feature template based on at least information associated with the third semantic features, where the feature template includes a number of acquired fourth words and one or more fourth semantic features related to the fourth words, and a third feature unit includes one or more fourth words and one or more fourth semantic features related to the one or more fourth words.

In addition, the method 500 includes the process 504 for searching for each third feature unit in the sentences of the corpus, recording one or more preliminary punctuation states associated with each third feature unit, and recording a number of occurrences of the one or more preliminary punctuation states associated with each third feature unit, and the process 505 for determining a preliminary weight for a preliminary punctuation state based on at least information associated with the number of occurrences of the preliminary punctuation states associated with each third feature unit, and establishing the language model including a mapping between each of the third feature units and the corresponding preliminary weights for the preliminary punctuation states associated with each of the third feature units.

In some embodiments, the process 503 and the process 504 are combined into a single process. For example, a feature unit is extracted from the sentences of the corpus according to the predetermined feature template. If the extracted feature unit has never appeared before, the extraction of such a feature unit is equivalent to the generation of a new feature unit, and a number of the new feature unit being found in the sentences of the corpus is determined to be 1.

In certain embodiments, the feature units can be extracted based on semantic features of words as well as position information of the words. For example, the position information of a word includes the word's relative-position information with respect to a present reference position, and thus an extracted feature unit includes the word, semantic features of the word, and the word's relative-position information with respect to the present reference position. Specifically, the predetermined feature template includes a number of the acquired words, the semantic features of the acquired words and the predetermined requirements to be satisfied for the relative-position relationship between the acquired words and the present reference position, in some embodiments.

In some embodiments, the extraction of feature units from the sentences according to the predetermined feature template includes: selecting a position of each word in the sentences of the corpus after word separation as a present reference position, determining one or more words satisfying the predetermined requirements for the relative-position relationship with respect to the present reference position, and generating one or more feature units based on at least information associated with semantic features of the determined words and the relative-position relationship. For example, a generated feature unit includes the relative-position relationship between a word and the present reference position.

According to one embodiment, correlation between words can be determined based on at least information associated with a feature template including requirements for the relative-position relationship associated with the words. For example, a feature unit extracted based on the feature template includes the correlation between words which is related to punctuation states. As an example, a language model established according to the feature unit and weights related to the punctuation states reflects a relationship between the information contained in the sentences and the punctuation states.

According to another embodiment, the predetermined feature template includes a single-word template and/or a multi-word template depending on the number of words to be acquired according to the predetermined feature template. For example, the single-word template includes acquisition of a single word satisfying a predetermined relative-position relationship with a present reference position and one or more semantic features of the single word. As an example, the relative-position relationship involves acquisition of the word at the present reference position or acquisition of the words at other positions, such as the position before or after the present reference position.

According to yet another embodiment, the acquisition of the single-word feature unit based on at least information associated with the single-word feature template includes: selecting a position of each word of the sentences in the corpus as the present reference position; determining a word satisfying the predetermined relative-position relationship with the present reference position; and identifying the single-word feature unit based on at least information associated with the semantic features related to the determined word. For example, the single-word feature unit includes the determined word, the semantic features related to the determined word, and the predetermined relative-position relationship between the determined word and the present reference position.

In one embodiment, the multi-word feature template includes acquisition of multiple words satisfying a predetermined relative-position relationship with a present reference position and one or more semantic features related to the multiple words. For example, the acquisition of the multi-word feature unit based on at least information associated with the multi-word feature template includes: selecting a position of each word in the sentences of the corpus as the present reference position, determining multiple words satisfying the predetermined relative-position relationship with the present reference position, and identifying the multi-word feature unit based on at least information associated with the semantic features related to the determined words. In another example, the multi-word feature unit includes the determined words, the semantic features related to the determined words, and the predetermined relative-position relationship between the determined words and the present reference position.

In another embodiment, different types of single-word templates are obtained through changing requirements for the relative-position relationship with respect to the present reference position contained in a single-word template, such as, a single-word template (Template T00) for acquiring a word at the present reference position and the corresponding semantic features, a single-word template (Template T01) for acquiring a word at a position immediately before the present reference position and the corresponding semantic features, and a single-word template (Template T02) for acquiring a word at a position immediately after the present reference position and the corresponding semantic features. In yet another embodiment, different types of multi-word templates are obtained through changing the requirements for the relative-position relationship with respect to the present reference position in a multi-word feature template, such as a multi-word template (Template T05) for acquiring words at the present reference position, a position immediately before the present reference position and a position immediately after the present reference position and the corresponding semantic features, and a multi-word template (Template T06) for acquiring words at the present reference position and at two positions immediately before the present reference position and the corresponding semantic features. As an example, the more words to be acquired by a multi-word template, the higher correlation among the acquired words, and the more accurate punctuation addition will be according to the established language model. In another example, the more types of templates, the more consideration of the correlation between the semantic features in the sentences and punctuation states, and the more accurate punctuation addition will be according the established language model.

Referring to FIG. 5, during the process 505, an identification (ID) is assigned to each feature unit, and the established language model includes the IDs, the corresponding feature units, and weight information of punctuation states related to the feature units, in some embodiments. For example, a semantic feature of a word includes part of speech of the word in a sentence and/or a sentence element the word serves as in the sentence.

In one embodiment, assuming the corpus includes a sentence (in Chinese): “

,

,

” (English translation: It is a good day. We will play ball in the afternoon and then have supper). For example, a language model can be established through the following operations according to FIG. 5.

Operation 1: perform word separation to divide the sentence into words. For example, the sentence “

,

,

,

” is divided into the following words:

,

,

,

,

,

,

,

,

,

.

Operation 2: mark semantic features and punctuation states of each word in the sentence after word separation. As an example, the semantic features include parts of speech and sentence elements. Table 1 illustrates the marking results of the sentence.

TABLE 1 Content

 (today)

 (weather)

 (good)

 (we)

 (afternoon) Part of speech Noun Noun Adjective Pronoun Noun Sentence element Adverbial Subject Predicate Subject Adverbial modifier modifier Punctuation N/A N/A Comma N/A N/A Content

 (go)

 (play ball)

 (then)

 (go)

 (eat supper) Part of speech Verb Noun Adverb Verb Noun Sentence element Predicate Adverbial Adverbial Predicate Object modifier modifier Punctuation N/A Comma N/A N/A Period

Operation 3: extract (e.g., generate) feature units from the sentence according to the marking results in Operation 2 and the predetermined feature template, assign an ID to each feature unit, and record a number of occurrences of each punctuation state of each feature unit. For example, the feature unit includes the word(s) and the semantic features of the word(s). As an example, assuming that the predetermined feature templates include single-word templates T00, T01 and T02 and a multi-word template T05. For example, the single-word template T00 is used to acquire a word at the present reference position and the corresponding semantic features; the single-word template T01 is used to acquire a word at a position immediately before the present reference position and the corresponding semantic features; the single-word template T02 is used to acquire a word at a position immediately after the present reference position and the corresponding semantic features; and the multi-word template T05 is used to acquire words at the present reference position, a position immediately before the present reference position and a position immediately after the present reference position and the corresponding semantic features.

In some embodiments, the position of each word in the sentence marked in the Operation 2 is selected as the present reference position, and feature units are extracted according to the single-word templates T00. T01 and T02 and the multi-word template T05. For example, the position of “

” is taken as the present reference position. Then, according to Template T00, a feature unit including “

” an the semantic features of “

” (i.e. noun and adverbial modifier) are acquired. According to Template T01, a feature unit including “

” and the semantic features of “

” (i.e. noun and subject) are acquired. According to Template T02, a feature unit including “

” and the semantic features of “

” (i.e. adjective and predicate) are acquired. In addition, according to Template T05, the following are acquired: a feature unit including “

” and the semantic features of “

” (i.e. noun and adverbial modifier), another feature unit including “

” an the semantic features of “

” i.e. noun and subject), as well as a feature unit “

” and the semantic features of “

” (i.e. adjective and predicate).

In certain embodiments, the relative position information of each word in the feature unit with respect to the present reference position is stored in the feature unit in an obvious manner. In some embodiments, the relative position information of each word in the feature unit with respect to the present reference position is stored in the feature unit is stored in a hidden manner according to the corresponding ID scope of each template by assigning the corresponding ID scope to the feature unit.

According to one embodiment, when the feature unit is extracted according to the feature template, if there is no word at a particular relative position required by the feature template, the absence of a word is indicated in a predetermined manner. For example, a predetermined character or a string of characters are used to indicate the absence of the word. As an example, there is no word before “

” in the above-noted example sentence. If the position of “

” is taken as the present reference position, the absence of a word at the position before “

” is indicated in a predetermined manner when the feature units are extracted according to Templates T00 or T05.

According to another embodiment, after the feature units are extracted, different IDs are assigned to the feature units for differentiation. There are many ways to assign the IDs. For example, a hash value generated based on the content of a feature unit is used as an ID for the feature unit.

According to yet another embodiment, for each feature unit, a number of occurrences of the punctuation states of the feature unit is recorded according to the punctuation states of each word in the feature unit every time the feature unit appears in the sentence in the corpus. For example, the punctuation states of a feature unit includes the punctuation states of each word in the feature unit. That is, if the feature unit includes multiple words, the punctuation states of the feature unit corresponds to an aggregation of the punctuation states of the words. As an example, if the punctuation states of a word changes, the punctuation states of the feature unit changes in response. For example, a feature unit includes three words whose punctuation states are “N/A”, “N/A” and “comma” respectively. The punctuation states of this feature unit is an aggregation of “N/A”. “N/A” and “comma.” As an example, if the punctuation state of the third word changes to “N/A”, the punctuation states of this feature unit changes to “N/A”, “N/A” and “N/A.”

Operation 4: determine a weight of each punctuation state of each feature unit according to the feature units extracted in Operation 3 and the number of occurrences of each punctuation state of each feature unit, and establish the language model that includes a mapping between each feature unit and a weight of each punctuation state of the feature unit. For example, the weight of each punctuation state in each feature unit can be determined through an iterative optimization algorithm, e.g. a Newton iterative algorithm, a BFGS (Large-scale Bound-constrained Optimization) iterative algorithm, a L-BFGS (Software for Large-scale Bound-constrained Optimization) iterative algorithm and an OWL-QN (Orthant-Wise Limited-memory Quasi-Newton) iterative algorithm. As an example, the L-BFGS iterative algorithm has a fast iteration speed and can facilitate the establishment of language model.

Through the Operations 1 to 4, the established language model includes the mapping between each feature unit and the weights of various punctuation states of the feature unit, in some embodiments. For example, each feature unit has an ID that distinguishes it from other feature units. As an example, the mapping between each feature unit and the weights of various punctuation states of the feature unit can be searched for through the ID of the feature unit. In certain embodiments, a search request containing the ID of the feature unit is sent to the language model so as to acquire the mapping between the feature unit and the weights of various punctuation states of the feature unit from the language model. For example, the language model stores the ID for the feature unit, the feature unit and the mapping between the feature unit and the weights of various punctuation states of the feature unit.

According to another embodiment, in order to perform punctuation addition through the language model including the single-word feature unit, the following operations can be executed. For example, a position of each word of the sentences in the corpus is selected as the present reference position. As an example, a word satisfying the predetermined relative-position relationship with the present reference position is determined according to the single-word feature template. In another example, the single-word feature unit is identified based on at least information associated with the semantic features related to the determined word. For example, the single-word template includes acquisition of the word satisfying a predetermined relative-position relationship with a present reference position and the semantic features of the word. As an example, the single-word feature unit includes the determined word, the semantic features related to the determined word, and the predetermined relative-position relationship between the determined word and the present reference position.

According to yet another embodiment, in order to perform punctuation addition through the language model including the multi-word feature unit, the following operations can be executed. For example, a position of each word in the sentences of the corpus is selected as the present reference position. As an example, multiple words satisfying the predetermined relative-position relationship with the present reference position are determined according to the multi-word feature template. In another example, the multi-word feature unit is identified based on at least information associated with the semantic features related to the determined words. As an example, the multi-word feature template includes acquisition of multiple words satisfying the predetermined relative-position relationship with the present reference position and the semantic features related to the multiple words. In another example, the multi-word feature unit includes the multiple words, the semantic features related to the multiple words, and the predetermined relative-position relationship between the multiple words and the present reference position.

In one embodiment, in order to perform punctuation addition through the language model including the single-word feature unit, the identification module 202 is configured to perform the following operations. For example, the identification module 202 is configured to select a position of each word of the sentences in the corpus as the present reference position, determine a word satisfying the predetermined relative-position relationship with the present reference position according to the single-word feature template, and identify the single-word feature unit based on at least information associated with the semantic features related to the determined word. For example, the single-word template includes acquisition of the word satisfying a predetermined relative-position relationship with a present reference position and the semantic features of the word. As an example, the single-word feature unit includes the determined word, the semantic features related to the determined word, and the predetermined relative-position relationship between the determined word and the present reference position.

In another embodiment, in order to perform punctuation addition through the language model including the multi-word feature unit, the identification module 202 is configured to perform the following operations. For example, the identification module 202 is configured to select a position of each word in the sentences of the corpus as the present reference position, determine multiple words satisfying the predetermined relative-position relationship with the present reference position according to the multi-word feature template, and identify the multi-word feature unit based on at least information associated with the semantic features related to the determined words. As an example, the multi-word feature template includes acquisition of multiple words satisfying the predetermined relative-position relationship with the present reference position and the semantic features related to the multiple words. In another example, the multi-word feature unit includes the multiple words, the semantic features related to the multiple words, and the predetermined relative-position relationship between the multiple words and the present reference position.

FIG. 6 is a simplified diagram showing a method for adding punctuations according to another embodiment of the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. The method 600 includes at least the process for establishing a language model, the process for determining a first aggregate weight, the process for determining a second aggregate weight, and the process for weighted calculation and punctuation addition.

According to one embodiment, the process for establishing a language model is executed in advance. For example, once the language model is established, punctuations are added to a voice file based on the language model. As an example, the process for determining a first aggregate weight and the process for determining a second aggregate weight are executed in parallel, e.g., to improve the information-process speed. In another example, after obtaining the first aggregate weight and the second aggregate weight, the process for weighted calculation and punctuation addition is executed.

According to another embodiment, specifically, in the process for establishing the language model word separation and sentence separation are performed on the corpus. For example, semantic features of each word in the corpus are marked, and feature units are extracted according to a predetermined feature template based on the word-separation results and the semantic features of each word in the corpus. As an example, a number of occurrences of each punctuation state of each feature unit is marked. In another example, an ID is assigned to each feature unit. In yet another example, a mapping between each feature unit and the weights of various punctuation states of the feature unit is obtained through optimization iteration, and then the language model is established for punctuation addition. As an example, the language model stores the mapping between each feature unit and the weights of various punctuation states thereof.

According to yet another embodiment, during the process for determining the first aggregate weight, the voice file is input into a voice engine as a whole. For example, the voice engine identifies words contained in the voice file and the semantic features of each word according to an acoustic model, a dictionary and another language model for identification of the semantic features of sentences. As an example, a number of first feature units (e.g., N1) contained in the voice file are identified according to the voice engine's identification results. In another example, according to the ID of each feature unit in the first feature units, weights of various punctuation states of each feature unit are obtained from the language model established during the process for establishing the language model. In yet another example, an optimal path is calculated using a Viterbi algorithm and the first aggregate weight of various punctuation states of the voice file is determined.

According to yet another embodiment, during the process for determining the second aggregate weight, the voice file is input into a silence-detection module. For example, the silence-detection module divides the voice file into segments to be processed according to the silence detection results and delivers the paragraphs into the voice engine one by one. As an example, the voice engine identifies the words contained in the voice file and the semantic features of each word according to an acoustic model, a dictionary and another language model for the identification of the semantic features of sentences. In another example, the feature units contained in each segment are identified according to the words contained in each segment and the semantic features of each word. In yet another example, a number of second feature units (e.g., N2) contained in the voice file are determined to include an aggregation of the feature units of all segments. As an example, according to the ID of each feature unit in the second feature units, weights of various punctuation states of each feature unit are acquired from the language model established in the process for establishing the language model. In another example, an optimal path is calculated using a Viterbi algorithm and hence the second aggregate weight of various punctuation states of the voice file is acquired.

In some embodiments, after acquiring the first aggregate weight and the second aggregate weight, during the process for weighted calculation and punctuation addition, a weighted calculation is performed on the first aggregate weight and the second aggregate weight of the various punctuation states of the voice file. For example, if the first aggregate weight is R1 and the second aggregate weight is R2, a third aggregate weight R3 determined according to the following equation:

R ₃ =a×R ₁+(1−a)×R ₂

where a represents a weight coefficient satisfying 0<a<1. As an example, punctuation states that yield a largest value for the third aggregate weight R3 are selected, and punctuations are added to the voice file according to the punctuation states.

According to one embodiment, a method is provided for adding punctuations. For example, one or more first feature units are identified in a voice file taken as a whole based on at least information associated with one or more first words in the voice file and one or more first semantic features related to the first words; the voice file is divided into multiple segments based on at least information associated with a silence detection; one or more second feature units are identified in the voice file based on at least information associated with one or more second words in the segments and one or more second semantic features related to the second words; a first aggregate weight of first punctuation states of the voice file based on at least information associated with the first feature units and a second aggregate weight of second punctuation states of the voice file based on at least information associated with the second feature units are determined, using a language model established based on word separation and third semantic features: a weighted calculation is performed to generate a third aggregate weight based on at least information associated with the first aggregate weight and the second aggregate weight; and one or more final punctuations are added to the voice file based on at least information associated with the third aggregate weight. For example, the method is implemented according to at least FIG. 1, FIG. 4, and/or FIG. 5.

According to another embodiment, a system for adding punctuations includes a silence-detection module, an identification module, and a punctuation-addition module. The silence-detection module is configured to divide a voice file to be processed into multiple segments based on at least information associated with a silence detection. The identification module is configured to identify one or more first feature units in the voice file taken as a whole based on at least information associated with one or more first words in the voice file and one or more first semantic features related to the first words and identify one or more second feature units in the voice file based on at least information associated with one or more second words in the segments and one or more second semantic features related to the second words. The punctuation-addition module is configured to determine, using a language model established based on word separation and third semantic features, a first aggregate weight of first punctuation states of the voice file based on at least information associated with the first feature units and a second aggregate weight of second punctuation states of the voice file based on at least information associated with the second feature units, perform a weighted calculation to generate a third aggregate weight based on at least information associated with the first aggregate weight and the second aggregate weight, and add one or more final punctuations to the voice file based on at least information associated with the third aggregate weight. For example, the system is implemented according to at least FIG. 2, FIG. 3, and/or FIG. 6.

According to yet another embodiment, a non-transitory computer readable storage medium comprises programming instructions for adding punctuations. The programming instructions are configured to cause one or more data processors to execute the following operations. For example, one or more first feature units are identified in a voice file taken as a whole based on at least information associated with one or more first words in the voice file and one or more first semantic features related to the first words; the voice file is divided into multiple segments based on at least information associated with a silence detection; one or more second feature units are identified in the voice file based on at least information associated with one or more second words in the segments and one or more second semantic features related to the second words; a first aggregate weight of first punctuation states of the voice file based on at least information associated with the first feature units and a second aggregate weight of second punctuation states of the voice file based on at least information associated with the second feature units are determined, using a language model established based on word separation and third semantic features; a weighted calculation is performed to generate a third aggregate weight based on at least information associated with the first aggregate weight and the second aggregate weight; and one or more final punctuations are added to the voice file based on at least information associated with the third aggregate weight. For example, the storage medium is implemented according to at least FIG. 1, FIG. 4, and/or FIG. 5.

The above only describes several scenarios presented by this invention, and the description is relatively specific and detailed, yet it cannot therefore be understood as limiting the scope of this invention's patent. It should be noted that ordinary technicians in the field may also, without deviating from the invention's conceptual premises, make a number of variations and modifications, which are all within the scope of this invention. As a result, in terms of protection, the patent claims shall prevail.

For example, some or all components of various embodiments of the present invention each are, individually and/or in combination with at least another component, implemented using one or more software components, one or more hardware components, and/or one or more combinations of software and hardware components. In another example, some or all components of various embodiments of the present invention each are, individually and/or in combination with at least another component, implemented in one or more circuits, such as one or more analog circuits and/or one or more digital circuits. In yet another example, various embodiments and/or examples of the present invention can be combined.

Additionally, the methods and systems described herein may be implemented on many different types of processing devices by program code comprising program instructions that are executable by the device processing subsystem. The software program instructions may include source code, object code, machine code, or any other stored data that is operable to cause a processing system to perform the methods and operations described herein. Other implementations may also be used, however, such as firmware or even appropriately designed hardware configured to carry out the methods and systems described herein.

The systems' and methods' data (e.g., associations, mappings, data input, data output, intermediate data results, final data results, etc.) may be stored and implemented in one or more different types of computer-implemented data stores, such as different types of storage devices and programming constructs (e.g., RAM, ROM, Flash memory, flat files, databases, programming data structures, programming variables, IF-THEN (or similar type) statement constructs, etc.). It is noted that data structures describe formats for use in organizing and storing data in databases, programs, memory, or other computer-readable media for use by a computer program.

The systems and methods may be provided on many different types of computer-readable media including computer storage mechanisms (e.g., CD-ROM, diskette, RAM, flash memory, computer's hard drive, etc.) that contain instructions (e.g., software) for use in execution by a processor to perform the methods' operations and implement the systems described herein.

The computer components, software modules, functions, data stores and data structures described herein may be connected directly or indirectly to each other in order to allow the flow of data needed for their operations. It is also noted that a module or processor includes but is not limited to a unit of code that performs a software operation, and can be implemented for example as a subroutine unit of code, or as a software function unit of code, or as an object (as in an object-oriented paradigm), or as an applet, or in a computer script language, or as another type of computer code. The software components and/or functionality may be located on a single computer or distributed across multiple computers depending upon the situation at hand.

The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.

While this specification contains many specifics, these should not be construed as limitations on the scope or of what may be claimed, but rather as descriptions of features specific to particular embodiments. Certain features that are described in this specification in the context or separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.

Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous. Moreover, the separation of various system components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.

Although specific embodiments of the present invention have been described, it will be understood by those of skill in the art that there are other embodiments that are equivalent to the described embodiments. Accordingly, it is to be understood that the invention is not to be limited by the specific illustrated embodiments, but only by the scope of the appended claims. 

1. A method for adding punctuations, the method comprising: identifying one or more first feature units in a voice file taken as a whole based on at least information associated with one or more first words in the voice file and one or more first semantic features related to the first words; dividing the voice file into multiple segments based on at least information associated with a silence detection; identifying one or more second feature units in the voice file based on at least information associated with one or more second words in the segments and one or more second semantic features related to the second words; determining, using a language model established based on word separation and third semantic features, a first aggregate weight of first punctuation states of the voice file based on at least information associated with the first feature units and a second aggregate weight of second punctuation states of the voice file based on at least information associated with the second feature units; performing a weighted calculation to generate a third aggregate weight based on at least information associated with the first aggregate weight and the second aggregate weight; and adding one or more final punctuations to the voice file based on at least information associated with the third aggregate weight.
 2. The method of claim 1, wherein the identification of the first feature units and the identification of the second feature units are performed approximately simultaneously.
 3. The method of claim 1, wherein: the voice file is processed in parallel for identifying the first feature units and for identifying the second feature units respectively; the voice file is processed as a whole for identifying the first feature units; the processing of the voice file for identifying the second feature units includes: performing the silence detection on the voice file; dividing the voice file into the multiple segments based on at least information associated with the silence detection; and identifying the second feature units in the voice file based on at least information associated with the second words in the segments and the second semantic features related to the second words.
 4. The method of claim 1, wherein identifying one or more second feature units in the voice file based on at least information associated with one or more second words in the segments and one or more second semantic features related to the second words includes: identifying one or more third feature units in each of the segments; and determining the second feature units including an aggregation of the third feature units of the segments.
 5. The method of claim 1, wherein the dividing the voice file into multiple segments based on at least information associated with a silence detection includes: determining a silence threshold according to a current application scenario; detecting a silence duration in the voice file; and if the silence duration exceeds the silence threshold, generating a segment from the voice file based on at least information associated with a silence location corresponding to the silence duration.
 6. The method of claim 1, wherein the language model is established based on the following operations: performing word separation to divide one or more sentences in a corpus into one or more third words, the sentences in the corpus including one or more preliminary punctuations; searching for one or more third feature units in the corpus according to a predetermined feature template based on at least information associated with the third semantic features related to the third words; for a particular third feature unit including one or more fourth words, recording a number of occurrences of one or more preliminary punctuation states associated with the one or more fourth words; determining a preliminary weight for a preliminary punctuation state based on at least information associated with the number of occurrences of the preliminary punctuation states; and establishing the language model including a mapping between the third feature units and the corresponding preliminary weights for the preliminary punctuation states associated with the third feature units.
 7. The method of claim 1, wherein: a first feature unit or a second feature unit includes a single-word feature unit, the single-word feature unit being acquired based on at least information associated with a single-word feature template; the single-word feature template includes acquisition of a fifth word satisfying a first predetermined relative-position relationship with a first present reference position and one or more fourth semantic features related to the fifth word; the acquisition of the single-word feature unit based on at least information associated with the single-word feature template includes: selecting a position of a sixth word as the first present reference position; determining the fifth word satisfying the first predetermined relative-position relationship with the first present reference position; and identifying the single-word feature unit based on at least information associated with the fourth semantic features related to the fifth word, the single-word feature unit including the fifth word, the fourth semantic features related to the fifth word, and the first predetermined relative-position relationship between the fifth word and the first present reference position.
 8. The method of claim 1, wherein: a first feature unit or a second feature unit includes a multi-word feature unit, the multi-word feature unit being acquired based on at least information associated with a multi-word feature template; the multi-word feature template includes acquisition of multiple seventh words satisfying a second predetermined relative-position relationship with a second present reference position and one or more fifth semantic features related to the seventh words; the acquisition of the multi-word feature unit based on at least information associated with the multi-word feature template includes: selecting a position of an eighth word as the second present reference position; determining the seventh words satisfying the second predetermined relative-position relationship with the second present reference position; and identifying the multi-word feature unit based on at least information associated with the fifth semantic features related to the seventh words, the multi-word feature unit including the seventh words, the fifth semantic features related to the seventh words, and the second predetermined relative-position relationship between the seventh words and the second present reference position.
 9. The method of claim 1, wherein: the determining a first aggregate weight of first punctuation states of the voice file based on at least information associated with the first feature units includes: acquiring from the language model a first mapping between the first feature units and one or more first preliminary weights for one or more first preliminary punctuation states associated with the first feature units; determining one or more first word weights related to the first punctuation states based on at least information associated with the first mapping; and calculating the first aggregate weight of the first punctuation states of the voice file based on at least information associated with the first word weights.
 10. The method of claim 1, wherein: the determining a second aggregate weight of second punctuation states of the voice file based on at least information associated with the second feature units includes: acquiring from the language model a second mapping between the second feature units and one or more second preliminary weights for one or more second preliminary punctuation states associated with the second feature units; determining one or more second word weights related to the second punctuation states based on at least information associated with the second mapping; and calculating the second aggregate weight of the second punctuation states of the voice file based on at least information associated with the second word weights.
 11. The method of claim 1, wherein the first semantic feature or the second semantic feature includes parts of speech.
 12. The method of claim 1, wherein the first semantic feature or the second semantic feature includes sentence elements.
 13. A system for adding punctuations, the system comprising: a silence-detection module configured to divide a voice file to be processed into multiple segments based on at least information associated with a silence detection; an identification module configured to identify one or more first feature units in the voice file taken as a whole based on at least information associated with one or more first words in the voice file and one or more first semantic features related to the first words and identify one or more second feature units in the voice file based on at least information associated with one or more second words in the segments and one or more second semantic features related to the second words; and a punctuation-addition module configured to: determine, using a language model established based on word separation and third semantic features, a first aggregate weight of first punctuation states of the voice file based on at least information associated with the first feature units and a second aggregate weight of second punctuation states of the voice file based on at least information associated with the second feature units; perform a weighted calculation to generate a third aggregate weight based on at least information associated with the first aggregate weight and the second aggregate weight; and add one or more final punctuations to the voice file based on at least information associated with the third aggregate weight.
 14. The system of claim 13 wherein the identification module is further configured to identify the first feature units and the second feature units approximately simultaneously.
 15. The system of claim 13, further comprises: a first input module coupled to the identification module and configured to provide the voice file to be processed as a whole to the identification module, the identification module being further configured to receive the voice file from the first input module and process the voice file as a whole for identifying the first feature units; and a second input module coupled to the silence-detection module and configured to provide the voice file to the silence-detection module, the silence-detection module being further configured to provide the segments of the voice file to the identification module that is further configured to identify the second feature units in the voice file based on at least information associated with the second words in the segments and the second semantic features related to the second words.
 16. The system of claim 13 wherein the identification module is configured to identify one or more third feature units in each of the segments and determine the second feature units including an aggregation of the third feature units of the segments.
 17. The system of claim 13 wherein the silence-detection module is further configured to determine a silence threshold according to a current application scenario, detect a silence duration in the voice file, and if the silence duration exceeds the silence threshold, and generate a segment from the voice file based on at least information associated with a silence location corresponding to the silence duration.
 18. The system of claim 13 is further configured, for establishing the language model, to: perform word separation to divide one or more sentences in a corpus into one or more third words, the sentences in the corpus including one or more preliminary punctuations; search for one or more third feature units in the corpus according to a predetermined feature template based on at least information associated with the third semantic features related to the third words; for a particular third feature unit including one or more fourth words, record a number of occurrences of one or more preliminary punctuation states associated with the one or more fourth words; and determine a preliminary weight for a preliminary punctuation state based on at least information associated with the number of occurrences of the preliminary punctuation states; and establish the language model including a mapping between the third feature units and the corresponding preliminary weights for the preliminary punctuation states associated with the third feature units.
 19. The system of claim 13, wherein: a first feature unit or a second feature unit includes a single-word feature unit, the single-word feature unit being associated with a single-word feature template including acquisition of a fifth word satisfying a first predetermined relative-position relationship with a first present reference position and one or more fourth semantic features related to the fifth word; the identification module is further configured to: select a position of a sixth word as the first present reference position; determine the fifth word satisfying the first predetermined relative-position relationship with the first present reference position; and identify the single-word feature unit based on at least information associated with the fourth semantic features related to the fifth word, the single-word feature unit including the fifth word, the fourth semantic features related to the fifth word, and the first predetermined relative-position relationship between the fifth word and the first present reference position.
 20. The system of claim 13, wherein: a first feature unit or a second feature unit includes a multi-word feature unit, the multi-word feature unit being associated with a multi-word feature template including acquisition of multiple seventh words satisfying a second predetermined relative-position relationship with a second present reference position and one or more fifth semantic features related to the seventh words; the identification module is further configured to: select a position of an eighth word as the second present reference position; determine the seventh words satisfying the second predetermined relative-position relationship with the second present reference position; and identify the multi-word feature unit based on at least information associated with the fifth semantic features related to the seventh words, the multi-word feature unit including the seventh words, the fifth semantic features related to the seventh words, and the second predetermined relative-position relationship between the seventh words and the second present reference position.
 21. The system of claim 13, wherein the punctuation-addition module includes: an aggregate-weight-determination component configured to determine, using the language model, the first aggregate weight of the first punctuation states of the voice file based on at least information associated with the first feature units and the second aggregate weight of the second punctuation states of the voice file based on at least information associated with the second feature units; an aggregate-weight-integration component configured to perform the weighted calculation to generate the third aggregate weight based on at least information associated with the first aggregate weight and the second aggregate weight; and a punctuation-addition component configured to add the final punctuations to the voice file based on at least information associated with the third aggregate weight.
 22. The system of claim 21, wherein the aggregate-weight-determination component is further configured to: acquire from the language model a first mapping between the first feature units and one or more first preliminary weights for one or more first preliminary punctuation states associated with the first feature units; determine one or more first word weights related to the first punctuation states based on at least information associated with the first mapping; and calculate the first aggregate weight of the first punctuation states of the voice file based on at least information associated with the first word weights.
 23. The system of claim 21, wherein the aggregate-weight-determination component is further configured to: acquire from the language model a second mapping between the second feature units and one or more second preliminary weights for one or more second preliminary punctuation states associated with the second feature units; determine one or more second word weights related to the second punctuation states based on at least information associated with the second mapping; and calculate the second aggregate weight of the second punctuation states of the voice file based on at least information associated with the second word weights.
 24. The system of claim 13, further comprising: one or more data processors; and a computer-readable storage medium; wherein one or more of the silence-detection module, the identification module, and the punctuation-addition module are stored in the storage medium and configured to be executed by the one or more data processors.
 25. A non-transitory computer readable storage medium comprising programming instructions for adding punctuations, the programming instructions configured to cause one or more data processors to execute operations comprising: identifying one or more first feature units in a voice file taken as a whole based on at least information associated with one or more first words in the voice file and one or more first semantic features related to the first words; dividing the voice file into multiple segments based on at least information associated with a silence detection; identifying one or more second feature units in the voice file based on at least information associated with one or more second words in the segments and one or more second semantic features related to the second words; determining, using a language model established based on word separation and third semantic features, a first aggregate weight of first punctuation states of the voice file based on at least information associated with the first feature units and a second aggregate weight of second punctuation states of the voice file based on at least information associated with the second feature units; performing a weighted calculation to generate a third aggregate weight based on at least information associated with the first aggregate weight and the second aggregate weight; and adding one or more final punctuations to the voice file based on at least information associated with the third aggregate weight. 